include("shared.lua")

function set_team()
 
Ready = vgui.Create( "DFrame" )
Ready:SetPos( ScrW() / 2, ScrH() / 2 ) //Set the position. Half the screen height and half the screen width. This will result in being bottom right of the middle of the screen.
Ready:SetSize( 175, 75 )
Ready:SetTitle( "You ready to build?" )
Ready:SetVisible( true ) 
Ready:SetDraggable( false )
Ready:ShowCloseButton( false )
Ready:MakePopup()
 
ready1 = vgui.Create( "DButton", Ready )
ready1:SetPos( 20, 25 )
ready1:SetSize( 140, 40 )
ready1:SetText( "Fuck yeah man!" ) 
ready1.DoClick = function()
RunConsoleCommand( "sb_team1" )
// Remind me to make an alternative later on. E.G: nope will make them disconnect. I'm too lazy at the moment, im tired.
 
end
 
end // end the set_team function
 
concommand.Add( "sb_start", set_team )
// Notice how the console command is same as first couple lines of init.lua
 